<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新年红包</title>
    <link rel="stylesheet" href="./css/hover-min.css">
    <link rel="stylesheet" href="./lib/fontawesome-free-6.0.0-web/css/all.min.css">
    <link rel="stylesheet" href="./css/style.min.css">
    <link rel="stylesheet" href="./css/heartbeat.min.css">
</head>

<body>
    <div class="container">
        <!-- 红包盒子 -->
        <div class="redpacket hvr-buzz-out">
            <div class="content show">
                <div class="top">
                    <h2 class="title">新年好</h2>
                </div>

                <div class="bottom">
                    <div class="open">開</div>
                    <div class="line"></div>
                </div>
            </div>

            <!-- 领取红包页面 -->
            <div class="collect">
                <div class="collect_top">2022</div>
                <div class="collect_bottom">
                    <h3 class="collect_title">祝你笑口常开</h3>
                    <h2 class="price
                    ">6.66 <span>元</span></h2>
                    <div class="info"><a href="javascript:;">将「😂笑口常开」设为状态 ></a></div>
                </div>
            </div>

        </div>
    </div>
    <footer>
        <div class="copyright">&copy;copyright by <a href="https://littleluo.cn" target="_blank">littleluo</a> <i
                id="heartbeat" class="fa fas fa-heartbeat"></i>
            <span>2022</span>
        </div>
    </footer>
</body>
<script src="./js/anime.min.js"></script>
<script>
    let redPacket = document.querySelector('.redpacket');
    let open = document.querySelector('.open');
    let content = document.querySelector('.content');
    let collect = document.querySelector('.collect');


    open.onclick = function () {
        this.classList = 'open rotate';
        setTimeout(function () {
            content.classList = 'content';
            collect.classList = 'collect show';
            open.classList = 'open';
        }, 3000);
    }
</script>

</html>